﻿using System;

namespace Models
{
    public class Time
    {
        private int hour;
        private int minute;
        private int second;

        public int Hour { get => hour; set => hour = value; }
        public int Minute { get => minute; set => minute = value; }
        public int Second { get => second; set => second = value; }

        public int TimePeriod()
        {
            return Hour * 3600 + Minute * 60 + Second * 1;
        }

        public Time()
        {
            hour = 0;
            minute = 0;
            second = 0;
        }

        public Time(int inputHour,int inputMinute,int inputSecond)
        {
            hour = inputHour;
            minute = inputMinute;
            second = inputSecond;
        }

        public Time(int inputHour, int inputMinute)
        {
            hour = inputHour;
            minute = inputMinute;
            second = 0;
        }
    }
}
